package service.impl;

import bean.StudentInfo;
import dao.IStudentInfoDao;
import dao.impl.StudentInfoDaoImpl;
import service.IStudentInfoService;

import java.util.List;

public class StudentInfoServiceImpl implements IStudentInfoService {

    IStudentInfoDao studentInfoDao = new StudentInfoDaoImpl();

    @Override
    public List<StudentInfo> queryStudentInfo() throws Exception {
        return studentInfoDao.queryStudentInfo();
    }

    @Override
    public boolean insertStudentInfo(StudentInfo studentInfo) throws Exception {
        return studentInfoDao.insertStudentInfo(studentInfo);
    }

    @Override
    public boolean updateStudentInfo(StudentInfo studentInfo) throws Exception {
        return studentInfoDao.updateStudentInfo(studentInfo);
    }

    @Override
    public boolean deleteStudentInfo(int id) throws Exception {
        return studentInfoDao.deleteStudentInfo(id);
    }
}
